import VUEX_NAME from './constants.vue'

export default {

    [VUEX_NAME.updateIsLoading]: function (state, payload) {
        state.tankerList = tankerList
    },

    [VUEX_NAME.cTankerList]: function (state, tankerList) {
        state.tankerList = tankerList
    },

    [VUEX_NAME.uTanker]: function (state, params) {
        let tanker = state.tankerList[params.index]
        tanker[params.field] = params.value
    },

    [VUEX_NAME.cCardList]: function (state, cardList) {
        state.cardList = cardList
    },

    [VUEX_NAME.updateFilterCardList]: function (state, filterCardList) {
        state.filterCardList = filterCardList
    },

    [VUEX_NAME.cSearchCardList]: function (state, searchCardList) {
        state.searchCardList = searchCardList
    },

    //设置登录信息
    [VUEX_NAME.cMyInfo]: function (state, myInfo) {
        state.myInfo = myInfo
    },

    [VUEX_NAME.cCardFlowList]: function (state, cardFlowList) {
        state.cardFlowList = cardFlowList
    },

    [VUEX_NAME.cCardFlowListBy]: function (state, cardFlowListBy) {
        state.cardFlowListBy = cardFlowListBy
    },

    [VUEX_NAME.cCurrentCardId]: function (state, currentCardId) {
        state.currentCardId = currentCardId
    },

    [VUEX_NAME.updateSessionId]: function (state, sessionId) {
        state.sessionId = sessionId
    },

    [VUEX_NAME.updateVerifySessionId]: function (state, verifySessionId) {
        state.verifySessionId = verifySessionId
    },

    [VUEX_NAME.updateOrderList]: function (state, orderList) {
        state.orderList = orderList
    },

    [VUEX_NAME.updateMainOrderList]: function (state, mainOrderList) {
        state.mainOrderList = mainOrderList
    },

    [VUEX_NAME.updateFindPwdObj]: function (state, findPwdObj) {
        state.findPwdObj = findPwdObj
    },
}
